<style>
	table{
		width:600px;
		text-align:center;
		border-collapse:collapse;
	}
	table tr td{
		height:45px;
		border:1px solid #999;
	}
	textarea{
		height:100px;
		width:400px;
		resize:none;
	}
</style>

<link href="/Public/Home/css/member.css" rel="stylesheet" type="text/css" media="screen" />
{include file='../Public/header.tpl'}
<div class="content">
	<div class="menu">当前位置: <span><a href=".">首页</a> <code>&gt;</code> 用户中心</span></div>	
	<div class="user">

		<div class="usernav">
	<dl>
		<dt><span>　</span>帐户管理</dt>
		<dd class="ddor">
			<a href="/index.php/Home/Member/order_list">我的订单</a>
		</dd>
		<dd >

			<a href="/index.php/Home/Member/message_list">我的留言</a>
		</dd>
		<dd>
			<a href="/index.php/Home/Member/collection_list">我的收藏</a>
		</dd>
	</dl>
	<dl>
		<dt><span>　</span>个人信息管理</dt>

		<dd >
			<a href="/index.php/Home/Member/profile">用户信息</a>
		</dd>
		<dd >
			<a href="/index.php/Home/Member/editpwd">修改密码</a>
		</dd>
		<dd >
			<a href="/index.php/Home/Member/address_list">收货地址</a>

		</dd>
	</dl>
</div>	
<div class="usermain">		
	<div class="userright">
		<div class="mainbt">详细订单情况</div>

{if isset($orderslistData[0])}
	<table>
		<tr>
			<td colspan="7">订单号:{$orderslistData[0].orderid}</td>
		</tr>
		<tr>
			<td colspan="7">
				送货地址：{$ordersData.address}
			</td>
		</tr>
		<tr>
			<td colspan="7">
				用户名：{$userData.username}
				真名：{$userData.relname}
			</td>
		</tr>
		<tr>
			<td colspan="7">
				邮箱：{$userData.email}
			</td>
		</tr>
		<tr>
			<td colspan="7">
				手机号码：{$userData.phone}
			</td>
		</tr>
		<tr>
			<td colspan="7">
				邮编：{$userData.code}
			</td>
		</tr>
		<tr>
			<td colspan="7">
				送货方式：
				{if $orderslistData.0.express=1}
							申通快递
						{elseif $orderslistData[0].express=2}
							城际快递
						{else}
							邮局平邮
						
				{/if}
			</td>
		</tr>
		<tr>
			<td colspan="7">
				支付方式：
				{if $orderslistData[0].payment=1}
							余额支付
						{elseif $orderslistData[0].express=2}
							银行汇款/转帐
						{else}
							货到付款
				{/if}
			</td>
		</tr>
		<tr>
			<td>商品编号</td>
			<td>商品名</td>
			<td>品牌</td>
			<td>分类</td>
			<td>商品价格</td>
			<td>购买数量</td>
			<td>图</td>
		</tr>

{foreach from=$orderslistData item=val}
{math assign='total' equation=$val.num*$val.price}
		<tr>
			<td>{$val.gid}</td>
			<td>{$val.name}</td>
			<td>{$val.bname}</td>
			<td>{$val.cname}</td>
			<td>{$val.price}</td>
			<td>{$val.num}</td>
			<td><img style="height:40px" src="/Public/Admin/upload/{$val.photo}" /></td>
		</tr>
{/foreach}
		<tr>
			<td colspan="7" style="text-align:right">
				总支出：<font style="color:red">￥<b>{$total}</b>元</font>
			</td>
		</tr>
		<tr>
			<td colspan="7" style="text-align:left">
				附言：<br>&nbsp;&nbsp;&nbsp;&nbsp;
					{$val.postscript}
			</td>
		</tr>
	</table>

{else}
	<div style="color:red;text-align:center">
		您的订单为空，您没有买物品！
	</div>
{/if}
		</div>
	</div>
</div>
{include file='../Public/footer.tpl'}